public abstract class HardDisk implements Component {

    private String name;
    private double volume;
    private double price;

    HardDisk(String name,double volume,double price){
        this.name = name;
        this.volume = volume;
        this.price = price;
    }

    public abstract void work();

    public String getName() { return name; }
    public double getVolume() { return volume; }
    public double getPrice() { return price; }
    public void setName(String name) { this.name = name; }
    public void setPrice(double price) { this.price = price; }

}
